﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SaintWinControl
{
    public partial class ucLblCMB : ControlMatrix
    {
        public ucLblCMB()
        {
            InitializeComponent();
            accessControl = comboBox1;
        }

        public string Text
        {
            get
            {
                //return string.Empty;               
                return comboBox1.SelectedText;
            }
        }

        public void SetData(DataTable p_dt, string p_displayMember)
        {
            comboBox1.DataSource = p_dt;
            comboBox1.DisplayMember = p_displayMember;            
        }

    }
}
